<? 

error_reporting(E_ALL);

?>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
</head>
<body>
<?
print_r($_POST);
$event_title = $_POST['event_title'];

$event_date = $_POST['event_date'];

$event_time = $_POST['event_time'];


$test = $_POST['event_location'];


$event_organiser = $_POST['event_organiser'];

$event_categories = $_POST['event_categories'];

$event_description = $_POST['event_description'];

$event_image_name = $_POST['event_image'];

$event_external_link = $_POST['event_external_link'];


	


?>


<h1><? echo $event_title; ?></h1>

<h3><? echo "$event_date - $event_time"; ?></h3>

<h3><? echo $test; ?></h3>

<h3><? echo $event_organiser; ?></h3>
<p> <? echo $event_description; ?></p>


<h3>Kategorier:</h3>
<? 

$event_categories_count = count($event_categories);
 
for($i=0; $i < $event_categories_count; $i++)
{
	
	echo $event_categories[$i] . "<br/>";

}

?> 

<h3><? echo $event_image_name; ?></h3>
    
<h3><a href="<? echo $event_external_link; ?>"><? echo $event_external_link; ?></a></h3>

<h5>
<?
print_r($_POST);  
?>
</h5>




    
   
 


</body>
</html>